package com.sghd.candy.module.rank.facade;

import com.sghd.common.socket.anno.InSession;
import com.sghd.common.socket.anno.SocketCommand;
import com.sghd.common.socket.anno.SocketModule;
import com.sghd.pojo.candy.rank.RankList;

import static com.sghd.candy.utils.SocketEnum.PLAYER_GET_RANK;
import static com.sghd.common.socket.session.SessionKeys.IDENTITY;

/**
 * @author Allen
 * @date 2018/12/28
 */
@SocketModule()
public interface RankFacade {
    /**
     *  获取排行数据
     * @param playerId
     * @param chessType
     * @return
     */
    @SocketCommand(PLAYER_GET_RANK)
    RankList getRank(@InSession(IDENTITY) long playerId);
}
